package com.bootcamp.java;
import java.util.Scanner;
/**
 * @program: code
 * @description: get the row number and column number from keyboard and print a hashtag map
 * @author: Keyu li
 * @create: 2021-08-24 20:01
 **/

public class PrintHashtag {
    public static void main(String[] args) {
        int row, col;
        Scanner sc = new Scanner(System.in);
        System.out.println("Input row number: ");
        row = Integer.parseInt(sc.nextLine());
        System.out.println("Input column number: ");
        col = Integer.parseInt(sc.nextLine());

        printHashtag(row, col);
    }

    private static void printHashtag(int row, int col) {
        for (int i = 0; i < row; i++) {
            for (int j = 0; j < col; j++) {
                System.out.print("#");
            }
            System.out.println();
        }
    }
}
